﻿using 通用类库.DataProvider;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 通用类库.Utils
{
    public class GlobalInstanceCache
    {
        private static GlobalInstanceCache _instance = null;
        public static GlobalInstanceCache Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new GlobalInstanceCache();
                return _instance;
            }
        }
        private GlobalInstanceCache()
        { }
        private StockDataTDX _dataInstance = null;
        public StockDataTDX DataInstance
        {
            get
            {
                if (_dataInstance == null)
                {
                    _dataInstance = new StockDataTDX();
                    _dataInstance.Start();
                }
                return _dataInstance;
            }
        } 
    }
}

